﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Model_Layer
{
    [DataContract]
    public class Airplane
    {
        private int idAirplane;
        private int capacity;
        private string model;


        public Airplane() 
        { 
        
        }


        public Airplane(int idairplane)
        {
            this.idAirplane = idairplane;
        }

        public Airplane(int idairplane, int capacity, string model)
        {
            this.idAirplane = idairplane;
            this.capacity = capacity;
            this.model = model;
        }


        [DataMember]
        public int Capacity
        {
            get;
            set;
        }

        [DataMember]
        public string Model
        {
            get;
            set;
        }

        [DataMember]
        public int Idairplane
        {
            get { return idAirplane; }
            set { idAirplane = value; }
        }
    }
}
